package com.jimo.security;

import javax.servlet.ServletException;

public class MyException extends ServletException {

    private String msg;
    private int code=-1;

    public MyException(String msg) {
        this.msg = msg;
    }

    public MyException(String msg, int code) {
        this.msg = msg;
        this.code = code;
    }

    public int getCode() {
        return code;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }
}
